#include <stdio.h>
int main(void)
{
	int a = 0;
	int b = 0;
	char operator = 0;

	printf("请输入数字");
	scanf_s("%d %c %d", &a, &operator,2, &b);

	switch (operator)
	{
	case '+':
		printf("%d + %d = %d", a, b, a + b);
		break;
	case '-':
		printf("%d - %d = %d", a, b, a - b);
		break;
	case '*':
		printf("%d * %d = %d", a, b, a * b);
		break;
	case '/':
		printf("%d / %d = %d", a, b, a / b);
		break;
	case '%':
		printf("%d %% %d = %d", a, b, a % b);
		break;

	}
	return 0;
}